﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZhiPiaoXJFW_CK.aspx.cs" Inherits="Web.Pages.YongShui.ZhiPiaoXJFW_CK" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript">
        function search()
        {
            gvList1.PerformCallback();
            gvList2.PerformCallback();
        }
        function gvList1endback()
        {
            
        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div style="margin: auto; width: 98%">
                    <div class="tabletitle1" align="center">
                        查看
                    </div>
                    <table>
                        <tr>
                            <td>区块：</td>
                            <td>
                                <dx:ASPxComboBox ID="cmbconGuanlik" ClientInstanceName="cmbconGuanlik" runat="server" ValueType="System.String"  Width="80px">
                                    <ClientSideEvents  SelectedIndexChanged="function(s,e){search();}"/>
                                </dx:ASPxComboBox>
                            </td>
                            <td>账务年月：</td>
                            <td>
                                <dx:ASPxTextBox ID="txtZWYM" runat="server" Width="100px">
                                    <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                        if( key==13){search();}}" />
                                </dx:ASPxTextBox>
                                <div style="display:none;">
                                     <dx:ASPxButton ID="btnSearch" ClientInstanceName="btnSearch" runat="server" Text="查询" UseSubmitBehavior="false" AutoPostBack="false">
                                         <ClientSideEvents  Click="function(s,e){search();}"/>
                                     </dx:ASPxButton>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="1" Width="98%">
                        <TabPages>
                            <dx:TabPage Text="汇总">
                                <ContentCollection>
                                    <dx:ContentControl>
                                        <dx:ASPxGridView ID="gvList1" ClientInstanceName="gvList1" runat="server" AutoGenerateColumns="False" KeyFieldName="S_GUANLIKM" Theme="Aqua1" Width="100%" EnableCallBacks="true" OnCustomCallback="gvList1_CustomCallback">
                                            <Columns>
                                                <dx:GridViewDataTextColumn FieldName="S_GUANLIKM" Caption="区块" HeaderStyle-HorizontalAlign="Center" Width="10%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ZBS" Caption="总笔数" HeaderStyle-HorizontalAlign="Center" Width="11%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ZJE" Caption="总金额" HeaderStyle-HorizontalAlign="Center" Width="11%" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="XJZBS" Caption="现金笔数" HeaderStyle-HorizontalAlign="Center" Width="11%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="XJZJE" Caption="现金金额" HeaderStyle-HorizontalAlign="Center" Width="11%" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ZPZBS" Caption="支票笔数" HeaderStyle-HorizontalAlign="Center" Width="11%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="ZPZJE" Caption="支票金额" HeaderStyle-HorizontalAlign="Center" Width="11%" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="FWZBS" Caption="付委笔数" HeaderStyle-HorizontalAlign="Center" Width="11%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="FWZJE" Caption="付委金额" HeaderStyle-HorizontalAlign="Center" Width="11%" PropertiesTextEdit-DisplayFormatString="0.00">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <Settings VerticalScrollableHeight="500" VerticalScrollBarMode="Auto" />
                                            <ClientSideEvents EndCallback="function(s,e){gvList1endback();}"/>
                                        </dx:ASPxGridView>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="明细">
                                <ContentCollection>
                                    <dx:ContentControl>
                                        <table>
                                            <tr>
                                                <td>用户编号：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtconYonghuh" runat="server" Width="100px">
                                                        <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                        if( key==13){$('#ASPxPageControl1_btnConGoto').click();}}" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnConGoto" runat="server" Text="定位" UseSubmitBehavior="false" OnClick="btnConGoto_Click"></dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <div style="height: 1px"></div>
                                        <dx:ASPxGridView ID="gvList2"  ClientInstanceName="gvList2" runat="server" AutoGenerateColumns="False" KeyFieldName="S_GUANLIKMC" Theme="Aqua1" Width="100%" OnCustomCallback="gvList2_CustomCallback">
                                            <Columns>

                                                <dx:GridViewDataTextColumn FieldName="D_SHOUFEIRQ" Caption="收费日期" Width="100px" CellStyle-HorizontalAlign="Center" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_GUANLIKMC" Caption="区块" Width="80px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="80px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="250px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_YM" Caption="年月" Width="60px" CellStyle-HorizontalAlign="Center">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_JINE" Caption="金额" Width="80px" PropertiesTextEdit-DisplayFormatString="0.00">
                                                    </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_SFFS" Caption="收费方式" Width="80px">
                                                    </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_ZWNY" Caption="账务年月" Width="60px" CellStyle-HorizontalAlign="Center">
                                                </dx:GridViewDataTextColumn>
                                                
                                            </Columns>
                                            <Settings VerticalScrollableHeight="450" VerticalScrollBarMode="Auto" />
                                        </dx:ASPxGridView>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                        </TabPages>
                    </dx:ASPxPageControl>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>




                                            